/**
 * 获取地址栏参数
 * @author wutiaoyu
 * @param {String} key 
 * @returns String
 */

 function getParams(key){    
    let data = window.location.href.split('?')[1]
    data = decodeURI(data)
    let arrdata = data.split("&");
    for (let i=0;i<arrdata.length;i++) 
    {
            let tempArr = arrdata[i].split("=");
            if(tempArr[0] == key) return tempArr[1]
    }
}